//
//  TradingProcessViewController.m
//  YTwallet
//
//  Created by ZhangLin on 2019/3/18.
//  Copyright © 2019年 hadrlog. All rights reserved.
//

#import "TradingProcessViewController.h"
#import "TradingProcessView.h"
#import "GetPosViewController.h"
@interface TradingProcessViewController ()
@property(nonatomic,strong)TradingProcessView *tv;

@end

@implementation TradingProcessViewController

-(void)loadView
{
    [super loadView];
    self.tv = [[TradingProcessView alloc] initWithFrame:self.view.bounds];
    self.view = self.tv;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"链接POS机";
    self.view.backgroundColor = [UIColor whiteColor];
    //领取POS
    [self.tv.getPosBtn addTarget:self action:@selector(getPosBtnAction) forControlEvents:(UIControlEventTouchUpInside)];
    self.tv.arrowImv.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(getPosBtnAction)];
    [self.tv.arrowImv addGestureRecognizer:tap];
}
-(void)getPosBtnAction
{
    GetPosViewController *getposVC = [[GetPosViewController alloc] init];
    [self.navigationController pushViewController:getposVC animated:YES];
}





@end
